/* common.css */

/* ---------- 布局类 ---------- */
/* 常用flex组合 */
.flex{
    display: flex;
}
.flex-cc {
    display: flex;
    justify-content: center;
    align-items: center;
}
.flex-c {
    display: flex;
    align-items: center;
}
.flex-bc {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.flex-ac {
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.flex-cc-col{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/*子项缩放 grow shrink basis */
.flex-auto {
    flex: 1 1 auto;  /* 可伸缩 */
}

.flex-none {
    flex: 0 0 auto;  /* 固定尺寸 */
}
.flex-full {
    flex: 1 0 100%;  /* 占满剩余空间 */
}
.flex-init {
    flex: 0 1 auto;  /* 初始值 */
}

/* flex wrap */
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
/* flex方向 */
.flex-row { flex-direction: row; }
.flex-row-reverse { flex-direction: row-reverse; }
.flex-col { flex-direction: column; }
.flex-col-reverse { flex-direction: column-reverse; }
/* 主轴对齐 */
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-evenly { justify-content: space-evenly; }
/* 交叉轴对齐 */
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.items-stretch { align-items: stretch; }

/* ---------- 定位类 ---------- */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.static { position: static; }

.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }


/* ---------- 盒模型 ---------- */
/* ---------- Margin 外间距 ---------- */
/* all */
.m0 { margin: 0; }
.m4 { margin: 4px; }
.m8 { margin: 8px; }
.m12 { margin: 12px; }
.m16 { margin: 16px; }
.m20 { margin: 20px; }
.m24 { margin: 24px; }
.m32 { margin: 32px; }

/* top */
.mt0 { margin-top: 0; }
.mt4 { margin-top: 4px; }
.mt8 { margin-top: 8px; }
.mt12 { margin-top: 12px; }
.mt16 { margin-top: 16px; }
.mt20 { margin-top: 20px; }
.mt24 { margin-top: 24px; }
.mt32 { margin-top: 32px; }

/* right */
.mr0 { margin-right: 0; }
.mr4 { margin-right: 4px; }
.mr8 { margin-right: 8px; }
.mr12 { margin-right: 12px; }
.mr16 { margin-right: 16px; }
.mr20 { margin-right: 20px; }
.mr24 { margin-right: 24px; }
.mr32 { margin-right: 32px; }

/* bottom */
.mb0 { margin-bottom: 0; }
.mb4 { margin-bottom: 4px; }
.mb8 { margin-bottom: 8px; }
.mb12 { margin-bottom: 12px; }
.mb16 { margin-bottom: 16px; }
.mb20 { margin-bottom: 20px; }
.mb24 { margin-bottom: 24px; }
.mb32 { margin-bottom: 32px; }

/* left */
.ml0 { margin-left: 0; }
.ml4 { margin-left: 4px; }
.ml8 { margin-left: 8px; }
.ml12 { margin-left: 12px; }
.ml16 { margin-left: 16px; }
.ml20 { margin-left: 20px; }
.ml24 { margin-left: 24px; }
.ml32 { margin-left: 32px; }


/* ---------- Padding 内间距 ---------- */
/* all */
.p0 { padding: 0; }
.p4 { padding: 4px; }
.p8 { padding: 8px; }
.p12 { padding: 12px; }
.p16 { padding: 16px; }
.p20 { padding: 20px; }
.p24 { padding: 24px; }
.p32 { padding: 32px; }

/* top */
.pt0 { padding-top: 0; }
.pt4 { padding-top: 4px; }
.pt8 { padding-top: 8px; }
.pt12 { padding-top: 12px; }
.pt16 { padding-top: 16px; }
.pt20 { padding-top: 20px; }
.pt24 { padding-top: 24px; }
.pt32 { padding-top: 32px; }

/* right */
.pr0 { padding-right: 0; }
.pr4 { padding-right: 4px; }
.pr8 { padding-right: 8px; }
.pr12 { padding-right: 12px; }
.pr16 { padding-right: 16px; }
.pr20 { padding-right: 20px; }
.pr24 { padding-right: 24px; }
.pr32 { padding-right: 32px; }

/* bottom */
.pb0 { padding-bottom: 0; }
.pb4 { padding-bottom: 4px; }
.pb8 { padding-bottom: 8px; }
.pb12 { padding-bottom: 12px; }
.pb16 { padding-bottom: 16px; }
.pb20 { padding-bottom: 20px; }
.pb24 { padding-bottom: 24px; }
.pb32 { padding-bottom: 32px; }

/* left */
.pl0 { padding-left: 0; }
.pl4 { padding-left: 4px; }
.pl8 { padding-left: 8px; }
.pl12 { padding-left: 12px; }
.pl16 { padding-left: 16px; }
.pl20 { padding-left: 20px; }
.pl24 { padding-left: 24px; }
.pl32 { padding-left: 32px; }


/* typography.css */

/* ---------- 字体大小 ---------- */
.fs12 { font-size: 12px; }
.fs13 { font-size: 13px; }
.fs14 { font-size: 14px; }
.fs15 { font-size: 15px; }
.fs16 { font-size: 16px; }
.fs18 { font-size: 18px; }
.fs20 { font-size: 20px; }
.fs24 { font-size: 24px; }
.fs28 { font-size: 28px; }
.fs32 { font-size: 32px; }
.fs36 { font-size: 36px; }

/* ---------- 字体粗细 ---------- */
.fw400 { font-weight: 400; }
.fw500 { font-weight: 500; }
.fw600 { font-weight: 600; }
.fw700 { font-weight: 700; }
.fw700 { font-weight: 800; }
.fw700 { font-weight: 900; }


/* 文本对齐 */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }


/* 文本溢出 */
.text-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-ellipsis-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-ellipsis-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


